package com.godpaper.chessGameHall.busniess.delegates
{
	import mx.rpc.AsyncToken;
	import mx.rpc.IResponder;
	import com.adobe.cairngorm.business.ServiceLocator;
	import com.godpaper.chessGameHall.model.constants.ServiceInfoList;
	
	
	public class ConfigDelegate extends DelegateBase implements IResponder
	{
		public function ConfigDelegate(responder:IResponder)
		{
			//TODO: implement function
			super(responder);
			this.service = ServiceLocator.getInstance().getHTTPService(ServiceInfoList.SERVICE_CONFIG);
		}
		
		//load Config.xml
		public function load(arguments:Object,setBusyCursor:Boolean=true,showProgressBar:Boolean=true):void
		{
			var token:AsyncToken = service.send(arguments);
			token.addResponder(this);
			
			setProgressStatus(setBusyCursor,showProgressBar);
		}
		
	}
}